package com.library.service;

import com.library.pojo.Book;

import java.util.List;

public interface BookService {
    //增加一本书
    int addBook(Book book);
    //删除一本书
    int deleteBookById(int id);
    //更新
    int updateBook(Book book);
    //查询
    Book queryBookById(int id);
    //查询全部
    List<Book> queryAllBook();

    List<Book> queryBookByName(String name);
}
